<link rel="stylesheet" media="screen" href="/application/css/jquery.icontacts.css" />
<!-- ICONTACTS CSS END -->
	<h1 class="page-title">Pacientes</h1>
	<form class="clearfix" name="search">
		<div class="searchcontainer">
			<div class="searchbox" onclick="$(this).find('input').focus();">
				<input type="text" name="contactsearch" id="contactsearch" autocomplete="off" placeholder="Busca...">
			</div>
		</div>
	</form>
	<ul class="icontacts">
		<li id="a" class="item"><a name="a" class="title">Todos</a> 
			<ul> 
				<?php
					foreach($all_p as $p){
						echo '<li><a href="#pacientes/'.$p['id'].'">'.$p['name'].'</a></li>';
					}
				?>
			</ul> 
		</li> 
	</ul> 
<!-- ICONTACTS JS -->
<script type="text/javascript" src="/application/js/jquery.icontacts.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    $('.icontacts').iContacts('#contactsearch', {});
});
</script>
<!-- ICONTACTS JS END -->